import { Injectable } from '@angular/core';

@Injectable()
export class InitService {

  init  : boolean = false;
  reset : boolean = false;

  constructor() { }

  /**
   * 初始化组件
   * @param judge 
   */ 
  _init(judge?: number) {
    if(judge) {
      this.init = true;
      return;
    }
      this.init = false;
  }

  /**
   * 初始化组件
   * @param judge 
   */
  _reset(judge?: number) {
    //console.log(this.reset)
    if (judge) {
      this.reset = true;
      return;
    }
    this.reset = false;
  }

}
